home *** CD-ROM | disk | FTP | other *** search
- this.chainBonus = function(x, y, val, typ)
- {
- var t = this;
- t.attachMovie("chain","c" + t.td,t.td);
- var n = t["c" + t.td];
- n._x = x;
- n._y = y;
- n.txtMC.gotoAndStop(typ);
- if(n._x > t.stageW - n._width / 2)
- {
- n._x = t.stageW - n._width / 2;
- }
- if(typ == "mul")
- {
- n.txtMC.txt = val;
- if(t.soundPlay == "true")
- {
- t.orb.start();
- }
- }
- else if(typ == "add")
- {
- n.txtMC.txt = val;
- }
- t.addD("t");
- };
-